package com.wushi.lenovo.asia5b.app_utils.eye;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wushi.lenovo.asia5b.R;

import java.util.List;

/**
 * Created by zhangyuncai on 2019/3/15.
 */
public class PopupItemAdapter<T extends PopupItemTextInterface> extends BaseQuickAdapter<T, BaseViewHolder> {
    public PopupItemAdapter(int layoutResId, @Nullable List<T> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, T item) {
        helper.setText(R.id.tv_popupitem_text, item.getText());
    }
}
